﻿using System;
using System.Collections.Generic;

using VSTalk.Engine.Core.Feed;

using agsXMPP;

namespace VSTalk.Engine.Core.History
{
    public interface IHistoryService
    {
        void Save();
        IEnumerable<IMessage> Read(Guid clientId, Jid with);

        IEnumerable<IMessage> Read(Guid clientId, Jid with, DateTime from);

        IEnumerable<IMessage> Read(Guid clientId, Jid with, DateTime from, DateTime to);

        DateTime? LatestMessageDate(Guid clientId, Jid with);
    }
}